home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 5 (Internal Edition)
/
Apple R&P Lib Internal v5.0.iso
/
6-Developer Demos
/
Developer Demos-Ed.
/
EARTHQUEST™ TOUR Demo
/
EARTHQUEST™ tour
/
EARTHQUEST™ tour
/
background_10897.txt
< prev
next >
Wrap
Text File
|
1990-08-03
|
9KB
|
457 lines
-- background: 10897 from stack: in
-- bmap block id: 11200
-- flags: 0000
-- background id: 0
-- name: c
----- HyperTalk script -----
--on idle
put 1 into counto
repeat with x = 1 to the number of btns
if the name of btn x contains "goto" then
set the icon of btn x to 27441
add 1 to counto --sets up variable to determine wait time
wait (30-counto)
set the icon of btn x to 20684
end if
end repeat
pass idle
end idle
on closecard
if the visible of field "label checker" is true then
labels
end if
pass closecard
end closecard
on buildit commando, whichway, obj1, obj2, obj3, obj4, obj5, obj6
--makes for easy construction of object hide and show routines
Put return & return & return&"on"&&commando&return&"lock screen"&return after cd field gather
if obj1 is not empty then put whichway&&obj1 & return after cd fld gather
if obj2 is not empty then put whichway&&obj2 & return after cd fld gather
if obj3 is not empty then put whichway&&obj3 & return after cd fld gather
if obj4 is not empty then put whichway&&obj4 & return after cd fld gather
if obj5 is not empty then put whichway&&obj5 & return after cd fld gather
if obj6 is not empty then put whichway&&obj6 & return after cd fld gather
Put "unlock screen with visual dissolve"&return&"end"&&commando after cd fld gather
end buildit
on hidehouse1
lock screen
hide bg btn house1bg
hide bg btn house2bg
hide cd fld house1
unlock screen with visual dissolve
end hidehouse1
on showtools --- shows tool fields for build it routine
lock screen
show cd fld sender
--show btn gathercontrol
show btn sendercontrol
show cd fld gather
unlock screen with visual dissolve
end showtools
on hidetools ---hides tool fields for build it routine
lock screen
hide cd fld sender
--hide btn gathercontrol
hide btn sendercontrol
hide cd fld gather
unlock screen with visual dissolve
end hidetools
-- part 1 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=115 top=22 right=42 bottom=361
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 21
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Title
-- part 43 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=475 top=55 right=69 bottom=506
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseup
right
end mouseup
-- part 52 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=411 top=54 right=68 bottom=442
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: leftarrow
----- HyperTalk script -----
on mouseup
visual scroll right
go prev
end mouseup
on mousedown
end mousedown
-- part 53 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=411 top=54 right=68 bottom=442
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: left arrow
----- HyperTalk script -----
on mouseup
left
end mouseup
-- part 56 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=10 top=9 right=32 bottom=59
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: label checker
-- part 60 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=447 top=50 right=74 bottom=471
-- title width / last selected line: 0
-- icon id / first selected line: 22642 / 22642
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: totop
----- HyperTalk script -----
on mouseup
visual zoom out
toptop
end mouseup
-- part 62 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=149 top=322 right=340 bottom=217
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: movies
----- HyperTalk script -----
MOVIES MOVIES MOVIES
on mousedown
get TKpopMenu ("movies",151,129)
if it = "" then
exit mousedown
end if
put item 1 of it into theMenu
put item 2 of it into theItem
put word 1 of theItem into showtime
-- Note: this will process each menu item (even hierarchical)
tkshowpict "present",150,10
do showtime
end mousedown
-- part 63 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=77 top=322 right=340 bottom=145
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: info
----- HyperTalk script -----
on mousedown
--adding table name to popup list
put the short name of this card&&"menu" into zaper
put TKdoTEXT (zaper) after selections
put 328-(17*(the number of lines in selections))into vvv
get TKpopMenu (selections,78,vvv,"true")
put item 1 of it into theMenu
put item 2 of it into theItem
if it = "" then
exit mousedown
end if
put item 1 of it into theMenu
put item 2 of it into theItem
tkhelp (the short name of this card), "mnu,txt,scl,pic,open,opt,left14,top32,wide230,high274", "Menu","","","","",theItem
end mousedown
-- part 64 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=5 top=322 right=340 bottom=73
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Index
----- HyperTalk script -----
INDEXtest
on mousedown
global indexo
Get TKpopMenu ("index",6,43,)
if it = "" then
exit mousedown
end if
put item 1 of it into theMenu
put item 2 of it into theItem
get tkdotext ("earth")
if it contains theItem then
go to card theITem of stack "earth"
end if
get tkdotext ("Journey")
if it contains theItem then
go to card theITem of stack "Journey"
end if
get tkdotext ("People")
if it contains theItem then
go to card theITem of stack "people"
end if
end mousedown
-- part 65 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=221 top=322 right=340 bottom=289
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: quotes
----- HyperTalk script -----
QUOTES QUOTES QUOTES
on mousedown
get TKpopMenu ("QUOTATIONS MENU",222,1,)
if it = "" then
exit mousedown
end if
put item 1 of it into theMenu
put item 2 of it into theItem
tkhelp "QUOTATIONS", "mnu,txt,scl,pic,open,opt,left14,top32,wide230,high230", "Menu","","","","",theItem
end mousedown
-- part 66 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=293 top=322 right=340 bottom=362
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sounds
----- HyperTalk script -----
SOUNDS SOUNDS SOUNDS
on mouseDown
Get TKpopMenu("Sounds",295,97,true,busy)
if it = "" then exit mouseDown
put item 1 of it into theMenu
put item 2 of it into theItem
play theitem
wait until the sound is "done"
wait 15
end mouseDown
-- part 67 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=366 top=322 right=340 bottom=434
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: options
----- HyperTalk script -----
on mousedown
global theitem
get TKpopMenu (options,367,210)
if it = "" then
exit mousedown
end if
put item 1 of it into theMenu
put item 2 of it into theItem
global wherefrom -- a global anchor for workshop nav
put the long name of this card into wherefrom
if theItem = "Copy art to Workshop" then
set userlevel to 3
choose select tool
doMenu "Select all"
doMenu "copy picture"
go to last card of stack workshop
doMenu "new card"
doMenu "paste picture"
choose browse tool
opencard
end if
if theItem = "Mystery Tour" then
push card
go to stack "Mystery Tour"
set userlevel to 2
end if
if theItem = "Copy card to Workshop" then
set userlevel to 3
push card
Workshop
end if
if theItem = "Help" then
push card
visual zoom out
go to card id 80705 of stack earth
end if
if theItem = "Quit" then
DoMenu "Quit Hypercard"
end if
if theItem = "Print Card" then
DoMenu "Print Card"
end if
if theItem = "Go to Workshop" then
push card
Go to stack "Workshop"
set the userlevel to 3
end if
end mousedown
-- part 68 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=439 top=322 right=340 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: labels
----- HyperTalk script -----
LABELS LABELS LABELS
on mousedown
labels
end mousedown